<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理界面</title>
    <link th:href="@{css/bootstrap.min.css}" rel="stylesheet">

    <script th:src="@{js/jquery.min.js}"></script>
    <!--这里不用加/static,默认在里面找，加了反而报错-->
    <script th:src="@{js/bootstrap.min.js}"></script>
    <style>
        body{
            background-color: #555555;
            /*//background:url("../static/image/bg.jpg") fixed;*/
        }
        .container{
            margin-top: 100px;
            text-align: center;
        }
    </style>
</head>
<body>
<!--<-!-导航栏-->
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand nav-tabs" href="../templates/hello.html">主页</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

            <form class="navbar-form navbar-left color-input-field">
                <div class="form-group">

                    <input type="search" class="form-control" placeholder="搜索博客">
                </div>


                <button type="submit" class="btn btn-default">
                    <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
                </button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="../templates/self.html">关于废人张</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">账号管理 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="../templates/index.html">切换账号</a></li>
                        <li><a href="#">编辑资料</a></li>
                        <li><a href="#">注销</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="../templates/index.html"><span  class="glyphicon glyphicon-off"> 退出</span></a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<!--博主表格-->
<nav class="container header">
    <div class="row">

        <h1 style="color: lightyellow">博主账号管理</h1>
    </div>

    <div class="col-md-12">
        <table class="table table-hover" style="text-align: left;color: cornflowerblue">
            <thead style="text-align: center">
            <tr>
                <th class="col-sm-1">    <label>
                    <input class="check_all" type="checkbox" value="check_all">
                        </label>
                </th>
                <th>博客号</th>
                <th>昵称</th>
                <th>性别</th>
                <th>email</th>
                <th>电话</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td class="col-sm-1">
                <input class="check_one" type="checkbox">
                </td>
                <td class="info_blogId">2746390869</td>
                <td class="info_blogName">关于废人张</td>
                <td>男</td>
                <td>123@qq.com</td>
                <td>18712129921</td>
                <td><a href="#" style="color: red;line-height:18px " class="delete_one">
                    <span class="glyphicon glyphicon-remove">删除</span></a></td>
            </tr>
            <tr>
                <td class="col-sm-1">
                    <input class="check_one" type="checkbox">
                </td>
                <td>2746390869</td>
                <td>关于废人张</td>
                <td>男</td>
                <td>123@qq.com</td>
                <td>18712129921</td>
                <td><a href="#" style="color: red;line-height:18px ">
                    <span class="glyphicon glyphicon-remove">删除</span></a></td>
            </tr>
            <tr>
                <td class="col-sm-1">
                    <input class="check_one" type="checkbox">
                </td>
                <td>2746390869</td>
                <td>关于废人张</td>
                <td>男</td>
                <td>123@qq.com</td>
                <td>18712129921</td>
                <td><a href="#" style="color: red;line-height:18px ">
                    <span class="glyphicon glyphicon-remove">删除</span></a></td>
            </tr>
            <tr>
                <td class="col-sm-1">
                    <input class="check_one" type="checkbox">
                </td>
                <td>2746390869</td>
                <td>关于废人张</td>
                <td>男</td>
                <td>123@qq.com</td>
                <td>18712129921</td>
                <td><a href="#" style="color: red;line-height:18px ">
                    <span class="glyphicon glyphicon-remove">删除</span></a></td>
            </tr>
            <tr>
                <td class="col-sm-1">
                    <input class="check_one" type="checkbox">
                </td>
                <td>2746390869</td>
                <td>关于废人张</td>
                <td>男</td>
                <td>123@qq.com</td>
                <td>18712129921</td>
                <td><a href="#" style="color: red;line-height:18px ">
                    <span class="glyphicon glyphicon-remove">删除</span></a></td>
            </tr>
            </tbody>
        </table>
    </div>
</nav>
<nav aria-label="Page navigation " class="col-lg-offset-8" >
    <ul class="pagination">
        <li>
            <a href="#" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a>
        </li>
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li>
            <a href="#" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
    </ul>
</nav>
</body>
<script>
    $(".delete_one").click(function () {
        var blog_id = $(".info_blogId").text();
        var blog_name = $(".info_blogName").text();
        alert("确认删除博客号为"+blog_id+" "+blog_name+"的博主吗");
    })
</script>
</html>